---
apiVersion: v1
kind: Service
metadata:
  name: &app application2
spec:
  ports:
    - port: 5000
      targetPort: http
      protocol: TCP
  selector:
    app: *app
    version: v0.0.3
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: &app application2
spec:
  selector:
    matchLabels:
      app: *app
      version: &ver v0.0.3
  template:
    metadata:
      labels:
        app: *app
        version: *ver
    spec:
      containers:
        - name: *app
          image: bigkaa/application2:v0.0.3
          imagePullPolicy: Always
          ports:
            - containerPort: 5000
              name: http
              protocol: TCP
          env:
            - name: OTEL_EXPORTER_OTLP_ENDPOINT
              value: http://otel-collector-agent:4318
            - name: OTEL_EXPORTER_OTLP_PROTOCOL
              value: HTTP
            - name: OTEL_EXPORTER_OTLP_INSECURE
              value: "true"
